#ifndef BEAM_QUALITY_LASERWAVELENGTH_H
#define BEAM_QUALITY_LASERWAVELENGTH_H

#include <QDialog>
#include <QDoubleSpinBox>
#include <QLabel>
#include <QPushButton>
#include <QVBoxLayout>
#include <QHBoxLayout>

class Beam_Quality_Laser_Wavelength_View : public QDialog
{
    Q_OBJECT

public:
    explicit Beam_Quality_Laser_Wavelength_View(QWidget *parent = nullptr);
    ~Beam_Quality_Laser_Wavelength_View() override;

    // 获取用户输入的波长值
    double getWavelength() const;

    double getFocallength() const;

    // 设置初始波长值
    void setWavelength(double wavelength);

    void setFocallength(double focallength);

private slots:
    void DialogAccepted();

    signals:
        void sendWavelength(double wavelength,double focallength);

private:
    void setupUi();
    void connectSignals();

private:
    QDoubleSpinBox *m_wavelengthSpinBox;
    QDoubleSpinBox *m_focallengthSpinBox;
    QPushButton *m_okButton;
    QPushButton *m_cancelButton;
    QLabel *m_unitLabel;
    QLabel *m_titleLabel;
};

#endif // BEAM_QUALITY_LASERWAVELENGTH_H